<!DOCTYPE html>
<html>

<head lang="zh-CN">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery.min.js"></script>
    <script src="jquery.formVerify.zy.js"></script>
    <script>
        $(document).ready(function () {

            $('.submit').click(function () {
                $.verifyFormZy({
                    ele: '.zyForm',
                    errorEle: '.zyError',
                    success:function(){
                        alert('Callback')
                    }
                })
            })
        });
    </script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <div class="zyForm">
        <p><input type="text" name="" data-type="names" placeholder="name"></p>
        <p><input type="text" name="" data-type="idCard" placeholder="idCard"></p>
        <p><input type="text" name="" data-type="email" placeholder="email"></p>
        <p><input type="text" name="" data-type="mobile" placeholder="mobile"></p>
        <p><input type="text" name="" data-type="notNull" placeholder="notNull"></p>
        <p><input type="text" name="" ></p>
        <p class="zyError"></p>
        <button class="submit">提交</button>
    </div>
</body>

</html>